﻿

using System.Security;

namespace MiniFox.Platform
{
    /// <summary>
    /// 
    /// </summary>
    public static class GlobalKey
    {
        #region 正则

        /// <summary>
        /// 默认匹配全局登录名的正则表达式
        /// </summary>
        public const string REGEX_SECURE_LOGINNAME = @"^[a-zA-Z]{1}([a-zA-Z0-9]|[_]){2,19}$";
        /// <summary>
        /// 默认匹配全局登录邮箱的正则表达式
        /// </summary>
        public const string REGEX_SECURE_EMAILADDRESS = @"^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$";
        /// <summary>
        /// 默认匹配全局登录手机的正则表达式
        /// </summary>
        public const string REGEX_SECURE_CELLPHONE = @"^([0-9]){8,20}$";
        /// <summary>
        /// 默认匹配全局登录密码的正则表达式
        /// </summary>
        public const string REGEX_SECURE_PASSWORD = @"^([a-z]|[A-Z]|[0-9]|[._@!#$]){6,20}$";

        #endregion
        /// <summary>
        /// 
        /// </summary>
        public const string NAME = "name";
        /// <summary>
        /// 
        /// </summary>
        public const string ORG_ID = "orgId";
        /// <summary>
        /// 
        /// </summary>
        public const string APP_ID = "appId"; 
        /// <summary>
        /// 
        /// </summary>
        public const string VALID_CODE = "valid_code";
        /// <summary>
        /// 
        /// </summary>
        public const string VALID_TICKET = "valid_ticket";
    }
}
